﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace OntologyFormDesigner.GuiComponent
{
    class Element
    {
        public OntologyUtility.Interfaces.IWidgetWithItems Container { get; set; }
        public List<OntologyUtility.Interfaces.IWidgetWithItems> Items { get; set; }

        public void addItem(OntologyUtility.Interfaces.IWidgetWithItems widget) 
        {
            if (Items == null) {
                Items = new List<OntologyUtility.Interfaces.IWidgetWithItems>();
            }

            Items.Add(widget);
        }
    }
}
